(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/components/top-bar/index" ], {
    "0a52": function(e, t, n) {
        n.d(t, "b", function() {
            return a;
        }), n.d(t, "c", function() {
            return r;
        }), n.d(t, "a", function() {
            return o;
        });
        var o = {
            tmIcon: function() {
                return Promise.all([ n.e("common/vendor"), n.e("components/tm-icon/index") ]).then(n.bind(null, "f4eb"));
            }
        }, a = function() {
            var e = this, t = (e.$createElement, e._self._c, e.__get_style([ e.navbarStyle ])), n = e.__get_style([ e.statusBarStyle ]), o = e.title ? e.__get_style([ e.titleStyle ]) : null;
            e.$mp.data = Object.assign({}, {
                $root: {
                    s0: t,
                    s1: n,
                    s2: o
                }
            });
        }, r = [];
    },
    "1a81c": function(e, t, n) {
        (function(e) {
            var o = n("4ea4");
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var a = o(n("9523")), r = n("26cb");
            function i(e, t) {
                var n = Object.keys(e);
                if (Object.getOwnPropertySymbols) {
                    var o = Object.getOwnPropertySymbols(e);
                    t && (o = o.filter(function(t) {
                        return Object.getOwnPropertyDescriptor(e, t).enumerable;
                    })), n.push.apply(n, o);
                }
                return n;
            }
            function c(e) {
                for (var t = 1; t < arguments.length; t++) {
                    var n = null != arguments[t] ? arguments[t] : {};
                    t % 2 ? i(Object(n), !0).forEach(function(t) {
                        (0, a.default)(e, t, n[t]);
                    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i(Object(n)).forEach(function(t) {
                        Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
                    });
                }
                return e;
            }
            t.default = {
                name: "TopBar",
                props: {
                    title: {
                        type: [ String, Boolean ],
                        default: ""
                    },
                    color: {
                        type: String,
                        default: "#382121"
                    },
                    fixed: {
                        type: Boolean,
                        default: !0
                    },
                    fixedSpacer: {
                        type: Boolean,
                        default: !1
                    },
                    bgColor: {
                        type: String,
                        default: "transparent"
                    },
                    bgImage: String,
                    left: {
                        type: [ Boolean, String ],
                        default: !1
                    },
                    search: {
                        type: [ Boolean, String ],
                        default: !1
                    },
                    iconColor: String,
                    leftIcon: String,
                    leftIconSize: [ Number, String ],
                    pageMode: Boolean,
                    customTitleStyle: {
                        type: Object,
                        default: function() {
                            return {};
                        }
                    },
                    autoPin: {
                        type: Boolean,
                        default: !1
                    },
                    bgMask: Boolean,
                    searchLight: Boolean,
                    pageName: {
                        type: String,
                        default: ""
                    }
                },
                data: function() {
                    var e = this.systemInfo, t = e.statusBarHeight, n = e.system;
                    return {
                        prefixCls: "gg-top-navbar",
                        pages: 0,
                        statusBarHeight: t,
                        customBar: /ios/i.test(n) ? 44 : 46,
                        barBg: "transparent",
                        pined: !1
                    };
                },
                computed: c(c({}, (0, r.mapGetters)({
                    showedNotice: "getShowedNotice"
                })), {}, {
                    titleStyle: function() {
                        var e = c({}, this.customTitleStyle);
                        return this.color && (e.color = this.color), e;
                    },
                    navbarStyle: function() {
                        var e = {};
                        return this.bgColor && (e.backgroundColor = this.bgColor), this.bgImage && (e.backgroundImage = this.bgImage), 
                        e;
                    },
                    statusBarStyle: function() {
                        var e = {}, t = this.systemInfo.statusBarHeight;
                        return e.height = "".concat(t, "px"), e;
                    }
                }),
                created: function() {
                    var t = this;
                    this.pages = getCurrentPages().length, this.autoPin && (this._observer = e.createIntersectionObserver(this), 
                    this._observer.relativeToViewport({
                        top: 50
                    }).observe(".gg-top-navbar-wrapper", function(e) {
                        e.intersectionRatio > 0 ? (t.pined = !1, t.$emit("pin", !1)) : (t.pined = !0, t.$emit("pin", !0));
                    }));
                },
                methods: c(c({}, (0, r.mapMutations)([ "setShowedNotice" ])), {}, {
                    handleCommonNavigate: function() {
                        if ("string" == typeof this.left) console.log("TOP_BAR: uni.navigateTo ".concat(this.left)), 
                        e.navigateTo({
                            url: this.left
                        }); else {
                            if (this.pages > 1) return console.log("TOP_BAR: uni.navigateBack"), e.navigateBack();
                            console.log("TOP_BAR: uni.switchTab HOME"), this.setShowedNotice(!1), e.switchTab({
                                url: "/pages/index/index"
                            });
                        }
                    },
                    handleSearch: function() {
                        this.handleLinkRoute("/pages/pack/search/index"), this.handleCommonBeacon("search_click"), 
                        this.handleCommonUma("Um_Event_SearchClick", {
                            Um_Key_SearchEntrance: this.pageName
                        });
                    }
                })
            };
        }).call(this, n("543d").default);
    },
    "2a88": function(e, t, n) {
        n.r(t);
        var o = n("1a81c"), a = n.n(o);
        for (var r in o) [ "default" ].indexOf(r) < 0 && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(r);
        t.default = a.a;
    },
    "6ebb": function(e, t, n) {
        n.r(t);
        var o = n("0a52"), a = n("2a88");
        for (var r in a) [ "default" ].indexOf(r) < 0 && function(e) {
            n.d(t, e, function() {
                return a[e];
            });
        }(r);
        n("6526");
        var i = n("f0c5"), c = Object(i.a)(a.default, o.b, o.c, !1, null, "1018a644", null, !1, o.a, void 0);
        t.default = c.exports;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "pages/components/top-bar/index-create-component", {
    "pages/components/top-bar/index-create-component": function(e, t, n) {
        n("543d").createComponent(n("6ebb"));
    }
}, [ [ "pages/components/top-bar/index-create-component" ] ] ]);